package kr.or.javacafe.manage.dao;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.orm.ibatis.SqlMapClientTemplate;

import kr.or.javacafe.manage.domain.Information;


@Repository
public class ManageDAOImpl implements ManageDAO{
	private static final String NAMESPACE = "manage.";
	
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	
	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return sqlMapClientTemplate;
	}
	
	@Override
	public Information selectInfomation(Information param) {
		return (Information) getSqlMapClientTemplate().queryForObject(NAMESPACE + "selectInfomation", param);
	}
	
	@Override
	public void updateInfomation(Information param) {
		getSqlMapClientTemplate().insert(NAMESPACE + "updateInfomation", param);
	}

}
